public class HomeWork05_01{
    public static void main(String[] args){
        int itger = 1;
        int ans = 0;
        while(itger <= 111111){
            ans += itger;
            itger = itger * 10 + 1;
        }
        System.out.println("1 + 11 + ... + 111111 = " + ans);
    }
}